import sys
from PySide6.QtWidgets import QApplication, QWidget, QPushButton

class WinForm(QWidget):
    def __init__(self, parent=None):
        super(WinForm, self).__init__(parent)
        self.setGeometry(300, 200, 300, 150)
        self.setWindowTitle("启动方式1")
        button = QPushButton("Close", self)
        button.clicked.connect(self.close)

if __name__ == '__main__':
    app = QApplication(sys.argv)
    win = WinForm()
    win.show()
    sys.exit(app.exec())